import { createRouter, createWebHistory } from "vue-router";

import Login from "@/components/login.vue";
import NotFound from "@/components/404.vue";
import Main from "@/components/main.vue"

const routes = [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: NotFound
    },
    {
        path: '/showMain',
        component: Main
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
